package com.roc.dao;

import java.util.List;

import com.roc.bean.MenuBean;
import com.roc.pojo.PowerModule;
import com.roc.pojo.ProfitModule;
import com.roc.pojo.ProfitPercentModule;
import com.roc.pojo.ProfitRuleModule;

public interface IModelDao extends IBaseDao{
	 List<MenuBean> listAllMenus()throws DaoException;
     List<PowerModule>queryModuleByOperatorId(Long operId,String modelCode)throws DaoException;
     
     ProfitModule queryProfitModuleById(String modelId) throws DaoException ;
     ProfitModule queryProfitModuleByModuleName (String moduleName) throws DaoException ;
     List<ProfitModule> queryProfitModuleByAgentId (String AgentId) throws DaoException ;
     
     List<ProfitRuleModule> queryProfitRuleModule(String modelId) throws DaoException ;
     List<ProfitPercentModule> queryProfitPerModule(String modelId) throws DaoException ;
     
     void deleteProfitModuleByModelId(String modelId) throws DaoException ;
     void deleteProfitRuleModuleByModelId(String modelId) throws DaoException ;
     void deleteProfitPerModuleByModelId(String modelId) throws DaoException ;
     
     ProfitModule selDefProfitModuleByAgentId(long agentId) throws DaoException ;
     void updateProfitModuleStatusById(String modelId , String status) throws DaoException ;
}
